package main

import (
	"fmt"
	"net/http"
	"time"
)

type MyHandler struct {
}

func (h *MyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
	fmt.Fprintln(w, "hello server", r.URL.Path)
}

func main() {
	server := &http.Server{
		Addr:              ":60000",
		Handler:           &MyHandler{},
		ReadTimeout:       2 * time.Second,
		ReadHeaderTimeout: 2 * time.Second,
		WriteTimeout:      2 * time.Second,
		IdleTimeout:       2 * time.Second,
		MaxHeaderBytes:    4096,
	}
	server.ListenAndServe()
}
